<template>

  <button @click="toggle">显示隐藏图片</button>

  <img v-show="show" alt="Vue logo" src="./assets/vue.svg" />

  <hr />

  计数器：{{ count }} <button @click="increment">累加</button>
</template>



<script>
export default {
  computed:{},
  watch: {},
  mounted(){









  },
  data() {
    return {
      show: true,
      count: 0,










    };
  },
  methods: {













    toggle() {
      this.show = !this.show;
    },
    increment() {
      this.count++;
    },
  },
};
</script>